<div>
    <table class="col-md-12 col-sm-12 col-xs-12">
        <thead>
            <tr>
                <th>#</th>
                <th>Exercise name</th>
                <th>Start Time</th>
                <th>End Time</th>
                <th>Updated Time</th>
                <th>Result</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            {% for test in tests %}
            <tr>
                <td>{{loop.index}}</td>
                <td>{{test['exercise']['name']}}</td>
                <td>{{test['exercise']['startTime'] ? date('Y-m-d H:i:s',test['exercise']['startTime']) : ''}}</td>
                <td>{{test['exercise']['endTime'] ? date('Y-m-d H:i:s',test['exercise']['endTime']) : ''}}</td>
                <td>{{test['updatedTime'] ? date('Y-m-d H:i:s',test['updatedTime']) : ''}}</td>
                <td>{{test['result'] ~ '/'}}<?php echo count(explode(',', $test['exercise']['questions']))?></td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
</div>